import { defineStore } from 'pinia'

const userInfo = defineStore('userInfo',{
  state: () => {
    return {
      username:'Alan',
      age: 18
    }
  },
  actions: {
    updateUserInfo(user) {
      this.username = user.username
      this.age = user.age
    }
  }
})

export default userInfo